<?php

class UserForm
{
    protected $_showAdd    = true;
    protected $_showEdit   = true;
    protected $_showDelete = true;

    public function getFormSetting()
    {
        return Array(
            'id' => Array(
                'type'      => 'integer',
                'length'    => 4,
                'is_show'   => true,
                'default'   => '0',
            ),
            'account' => Array(
                'type'      => 'string',
                'length'    => 16,
                'is_show'   => true,
                'default'   => '----',
            ),
            'auth_type' => Array(
                'type'      => 'integer',
                'length'    => 1,
                'is_show'   => true,
                'default'   => '0',
            ),
            'create_date' => Array(
                'type'      => 'timestamp',
                'length'    => 18,
                'is_show'   => true,
                'default'   => '0000-00-00',

            ),
            'properties' => Array(
                'type'      => 'string',
                'length'    => 5,
                'is_show'   => false,
                'default'   => '----',
            ),
        );
    }

    public function setShowAdd( $boolean ) 
    {
        $this->_showAdd = $boolean;
    }
    public function setShowEdit( $boolean ) 
    {
        $this->_showEdit = $boolean;
    }
    public function setShowDelete( $boolean ) 
    {
        $this->_showDelete = $boolean;
    }

/*
    public function getTableFields() {
        return Array(
            "id"            => "getId",
            "account"       => "getAccount",
            "password"      => "getPassword",
            'auth_type'     => 'getAuthType',
            'email'         => 'getEmail',
            'email_status'  => 'getEmailStatus',
            'status'        => 'getStatus',
            'create_date'   => 'getCreateDate',
            'update_date'   => 'getUpdateDate',
            'properties'    => 'getProperties',
        );
    }
*/



}

